<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id='hello'>
        <label for="male">
            <!--  双向绑定  sex 和 html元素的value互相绑定 -->
            <input type="radio" name="sex" id="male" v-model="sex" value="男">男
        </label>
        <label for="female">
            <input type="radio" name="sex" id="female" v-model="sex" value="女">女
        </label>
        <div>你选择的性别是{{sex}}</div>
    </div>
    <script src="../vue.js"></script>
    <script>
        const vueApp = new Vue({
            el: '#hello',
            data: {
                sex:'',
            },
        })
    </script>
</body>

</html>